﻿using DbModel.Models;
using IServices.Base;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;
using System.Threading.Tasks;

namespace IServices
{
    public interface IArticleService:IBaseServices<Article>
    {
        //void Add(Article model);
        //void Update(Article model);
        //void Delete(Article model);
        //List<Article> Query(Expression<Func<Article, bool>> whereExpression);
        Task <Article> GetByIdAsync (int id,CancellationToken cancellationToken=default);
        Task<Article> GetArticleDetailAsync(int id,CancellationToken cancellationToken=default);
        Task AddArticleCollection(int id,int userId,CancellationToken cancellationToken=default);
        Task AddArticleComments(int id,int userId,string Content,CancellationToken cancellationToken=default);
        Task AdditionalItemAsync(Article article, bool v, int n = 0);
    }
}
